{% extends "base/theme_profile.html" %}

{% block includeJS %}
<script type="text/javascript" src="/media/js/functionsAdd.js"></script>
{% endblock includeJS %}

{% block header %}
{% include "base/header.html"  with nomUtilisateur=userName%}
{% endblock header %}

{% block content %}
		<div id="carte_profil">
			<div id="profil">
				{{ error_message }}
				<form action="/addAlbum/" method="post" enctype="multipart/form-data">{% csrf_token %}
					<table>
						{% for field in form.visible_fields %}	
							<tr>
								<td></td>
								<td>{{ field.errors }}</td>								
							</tr>
							<tr>
								<td>{{ field.label_tag }} :</td>
								<td>{{ field }}</td>
								
							</tr>
						{% endfor %}
						{% for hidden in form.hidden_fields %}
							{{ hidden }}
						{% endfor %}
						<tr>
							<td></td>
							<td><input type="submit" value="Ajouter l'album !" /></td>
						</tr>
					</table>
				</form>
				
			</div>
		
			<div id="localisation">
				{% include "base/carte.html" with size="small" %}
			</div>
			<div class="clear"></div>
			<div id="retour">
				<a href="/myprofile" class="link" style="text-decoration:none">
					<button id="retour_profil" class="button-addphoto">Retour au profil</button>
				</a>
				<a href="/base/addPhotos/" class="link" style="text-decoration:none">
					<button id="ajouter_album" class="button-addphoto">Ajouter une photo</button>
				</a><br/>
			</div>
		</div>


{% endblock content %}

{% block footer %}
{% include "base/footer.html"%}
{%endblock footer %}